package com.springcloud.controller;

import com.springcloud.feign.HelloApiFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhengzihong
 * @version 1.0.0
 * @date 2019/1/12
 * @Description
 */
@RestController
public class PeopleController {


    @Autowired
    private HelloApiFeign helloApiFeign;

    @RequestMapping("hello")
    public String sayHello() {
        return helloApiFeign.sayHello();
    }
}
